// 引入定义store的函数
import { defineStore } from "pinia";
import { reqGetReportData } from "@/api/mock";
import type { ReportDataModel } from "@/api/mock/interface/dataModel";

export const useReportDataStore = defineStore({
    id: 'reportStore',
    state() {
      return {
        reportData: {} as ReportDataModel
      }
    },
    actions: {
      async getReportData() {
        const result = await reqGetReportData()
        // console.log('rr', result)
        this.reportData = result
      }
    },
    getters: {
      
    }
  })